const routes = [
	{
		path: '/',
		name: '/',
		component: () => import('@/views/login.vue'),
		redirect: '/login',
	},
	{
		name: "login",
		path: "/login",
		component: () => import('@/views/login.vue'),
		meta: {
			title: "登录"
		}
	},
	{
		name: "home",
		path: "/home",
		component: () => import('@/views/home.vue'),
		meta: {
			title: "首页"
		}
	},
	{
		name: "xs",
		path: "/xs",
		component: () => import('@/views/stock/xs.vue'),
		meta: {
			title: "销售"
		}
	},
	{
		name: "xslist",
		path: "/xslist",
		component: () => import('@/views/sale/xslist.vue'),
		meta: {
			title: "销售记录"
		}
	},
	{
		name: "xsgp",
		path: "/xsgp",
		component: () => import('@/views/sale/xsgp.vue'),
		meta: {
			title: "销售统计"
		}
	},
	{
		name: "xsmx",
		path: "/xsmx",
		component: () => import('@/views/sale/xsmx.vue'),
		meta: {
			title: "销售统计"
		}
	},
	{
		name: "xsGood",
		path: "/xsGood",
		component: () => import('@/views/stock/xs_good.vue'),
		meta: {
			title: "销售-商品"
		}
	},
	{
		name: "goods",
		path: "/goods",
		component: () => import('@/views/stock/goods.vue'),
		meta: {
			title: "商品管理"
		}
	},
	{
		name: "addgood",
		path: "/addgood",
		component: () => import('@/views/stock/good/addGood.vue'),
		meta: {
			title: "增加商品"
		}
	},
	{
		name: "submits",
		path: "/submits",
		component: () => import('@/views/stock/cart/submits.vue'),
		meta: {
			title: "购物车"
		}
	},
	{
		name: "goodgpdetail",
		path: "/goodgpdetail",
		component: () => import('@/views/sale/goodgpdetail.vue'),
		meta: {
			title: "商品汇总明细"
		}
	},
	{
		name: "cusgpdetail",
		path: "/cusgpdetail",
		component: () => import('@/views/sale/cusgpdetail.vue'),
		meta: {
			title: "客户汇总明细"
		}
	},
	{
		name: "altpwd",
		path: "/altpwd",
		component: () => import('@/views/setting/password.vue'),
		meta: {
			title: "修改密码"
		}
	},
	{
		name: "account",
		path: "/account",
		component: () => import('@/views/setting/account.vue'),
		meta: {
			title: "个人信息"
		}
	},
	{
		name: "orderdetail",
		path: "/orderdetail",
		component: () => import('@/views/sale/OrderDetail.vue'),
		meta: {
			title: "订单明细"
		}
	},
	{
		name: "orderalt",
		path: "/orderalt",
		component: () => import('@/views/sale/OrderAlt.vue'),
		meta: {
			title: "订单修改"
		}
	},
	{
		name: "zdgl",
		path: "/zdgl",
		component: () => import('@/views/sale/zdgl.vue'),
		meta: {
			title: "终端管理"
		}
	},
	{
		name: "pdsk",
		path: "/pdsk",
		component: () => import('@/views/sale/pdsk.vue'),
		meta: {
			title: "派单收款"
		}
	},
	{
		name: "addcontact",
		path: "/addcontact",
		component: () => import('@/views/sale/addContact.vue'),
		meta: {
			title: "编辑客户"
		}
	},
	{
		name: "xzzd",
		path: "/xzzd",
		component: () => import('@/views/bf/contact.vue'),
		meta: {
			title: "选择终端"
		}
	},
	{
		name: "zdbf",
		path: "/zdbf",
		component: () => import('@/views/bf/zdbf.vue'),
		meta: {
			title: "终端拜访"
		}
	},
	{
		name: "bfjl",
		path: "/bfjl",
		component: () => import('@/views/bf/bfjl.vue'),
		meta: {
			title: "拜访记录"
		}
	},
	{
		name: "bfDetail",
		path: "/bfDetail",
		component: () => import('@/views/bf/bfDetail.vue'),
		meta: {
			title: "拜访详情"
		}
	},
]

export default routes;